<?php
$this->load->view('layout/header', ["title"=> "接口调试首页"]);
$this->load->view('layout/topnav');
?>
<div style="margin:0px auto; margin-top:10px; width:1000px;">
  <ul>
    <li>接口名称：支付宝回调参数</li>
    <li>接口地址：</li>
    <li>接口方法：</li>
  </ul>
</div>

<br>
<table align="center" width="1000" cellpadding="0" cellspacing="1" style="border:1px solid #CCC">
  <form id="requestform">
  <tr bgcolor="#EEE" height="24">
    <td width="120">参数名</td>
    <td width="400">参数</td>
    <td>必填</td>
    <td>类型</td>
    <td>说明</td>
  </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td>请求地址</td>
      <td><select name="url">
              <option value="http://yuxun.aidiaowu.com:8083/v2/coin/alipay-notify">http://yuxun.aidiaowu.com:8083/v2/coin/alipay-notify</option>
          </select>

          </td>

          <td>是</td>
          <td>标准POST</td>
          <td>支付宝回调参数</td>
      </tr>
  <tr bgcolor="#F9F9F9" height="24">
    <td>支付宝回调参数</td>

    <td height="500">
        <textarea id="jsonstr" name="jsonstr" rows="30" cols="60">{
    "gmt_create":"2019-03-13 18:47:03",
    "charset":"utf-8",
    "seller_email":"app@waydiao.com",
    "subject":"微钓余额充值",
    "sign":"aJiCsIGfSJV2tl3+4UFoQHZaVLx7UHzEto50MF6Zty9n6ASqm7WkpcL0pPe3zv1eUq0yxkpG3HzkONPuHpCcYU3zUkayd2BNosfRlCK+3g38tzYcTa8fco\/KJWFU\/tf\/5NuWFLlNyxZHbWEOjhuo6ZtIKfoibYILiRXRxip8F5QoaPJ0TK8aNxezbTnMvF+mvuoC6g9GyPYR5fPRabmcN3oZSbAHr33fspvlbDX3fr10uTtec0T4svMA6NwSnL08EiTSkNm8dMAyY7Rp+EUxu0QNE5GRld\/riF0QNB91pGXcO1CcN6urp6LzgRlNec4CtAPslo\/AlzhI6kj\/tK7fvw==",
    "body":"微钓余额充值",
    "buyer_id":"2088302322575520",
    "invoice_amount":"0.01",
    "notify_id":"2019031300222184704075521053002965",
    "fund_bill_list":"[{\"amount\":\"0.01\",\"fundChannel\":\"PCREDIT\"}]",
    "notify_type":"trade_status_sync",
    "trade_status":"TRADE_SUCCESS",
    "receipt_amount":"0.01",
    "app_id":"2017120800447027",
    "buyer_pay_amount":"0.01",
    "sign_type":"RSA2",
    "seller_id":"2088821691465990",
    "gmt_payment":"2019-03-13 18:47:04",
    "notify_time":"2019-03-13 18:47:04",
    "version":"1.0",
    "out_trade_no":"1903138214311865",
    "total_amount":"0.01",
    "trade_no":"2019031322001475521021387014",
    "auth_app_id":"2017120800447027",
    "buyer_logon_id":"yue***@163.com",
    "point_amount":"0.00"
}
        </textarea>
    </td>

    <td>是</td>
    <td>标准POST</td>
    <td>支付宝回调参数</td>
  </tr>


  <tr bgcolor="#F9F9F9" height="24">
    <td colspan="5" align="center">
		<input type="button" value="request_post" onclick="request_post()"/>
		<input type="button" value="CURL RAW" onclick="request_curl_raw()"/>
		<input type="button" value="直接请求" onclick="direct()"/>
    </td>
  </tr>
  </form>
</table>
<script language="javascript">

function request_post(){
    var $form = $('#requestform');
    $form.attr('method', 'POST');
    //$form.append($('<input type="text" name="uri" value="'+uri+'"/>'));
    $form.attr('action', "/request/postJson.html");
    $form.submit();
}

</script>
</body>
</html>